<?php

namespace App\Model;

class ProjectUserModel extends BaseModel
{
    protected $table = 'project_user';

    protected $fillable = [
        'user_id',
        'project_id',
        'order_no',
        'price',
        'order_json_data',
        'spread_id',
        'product_price_uid',
    ];

    public function passInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(ProjectPassModel::class,'order_id','id');
    }
}
